<?php
// Module Definition
$module['name'] = 'PowerDNS';
$module['description'] = 'Maintain DNS zones stored and managed via the PowerDNS DNS Server.';

switch($action) {
	case 'register':
		break;
	case 'unregister':
		break;
	case 'enable':
		break;
	case 'disable':
		break;
	case 'hook':
		register_hook('server:domain:create', 'pdns_work');
		register_hook('server:domain:remove', 'pdns_work');
		register_hook('server:domain:update', 'pdns_work', 1);
		register_hook('server:service:monitor', 'pdns_monitor');
		register_hook('web:lang', 'pdns_add_lang');
		register_hook('web:cfg:default', 'pdns_add_cfg');
		register_hook('server:cfg:default', 'pdns_add_cfg');

		register_hook('server:service:start:named', 'pdns_start');
		register_hook('server:service:stop:named', 'pdns_stop');
		register_hook('server:service:restart:named', 'pdns_restart');
		break;
}
?>
